package com.zzw.bridge.common.entitys.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色管理
 *
 * @author XiaoJie
 * @date 2025-05-13 09:43:18
 */
@ApiModel(value = "系统角色实体")
@Data
@TableName("sys_role")
public class SysRoleEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@TableId
	private String id;

	@ApiModelProperty(value = "角色名称")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "数据范围（0：全部数据；1：本机构及子机构数据；2：本机构数据；3：本人数据；4：自定义数据）")
	@TableField("data_scope")
	private Integer dataScope;

	@ApiModelProperty(value = "机构ID")
	@TableField("org_id")
	private Long orgId;

	@ApiModelProperty(value = "版本号")
	@TableField("version")
	private Integer version;

	@ApiModelProperty(value = "删除标识（0：正常；1：已删除）")
	@TableField("deleted")
	private Integer deleted;

	@ApiModelProperty(value = "创建者")
	@TableField("creator")
	private String creator;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新者")
	@TableField("updater")
	private String updater;

	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("update_time")
	private Date updateTime;

}
